<h1>Listing customers</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Adress</th>
    <th>Zip code</th>
    <th>City</th>
    <th>Mobile phone</th>
    <th>Office phone</th>
    <th>Responsible name</th>
  </tr>

<% @customers.each do |customer| %>
  <tr>
    <td><%=h customer.name %></td>
    <td><%=h customer.adress %></td>
    <td><%=h customer.zip_code %></td>
    <td><%=h customer.city %></td>
    <td><%=h customer.mobile_phone %></td>
    <td><%=h customer.office_phone %></td>
    <td><%=h customer.responsible_name %></td>
    <td><%= link_to 'Show', customer %></td>
    <td><%= link_to 'Edit', edit_customer_path(customer) %></td>
    <td><%= link_to 'Destroy', customer, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New customer', new_customer_path %>